﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Configuration;

namespace TFhisto.Extension
{
    /// <summary>
    /// Interaction logic for Selection.xaml
    /// </summary>
    public partial class Selection : Window
    {
        private List<FileChangeInfo> _selectedFiles = new List<FileChangeInfo>();
        public List<FileChangeInfo> SelectedFiles
        {
            get { return _selectedFiles; }
            set
            {
                _selectedFiles = value;
                lstSelectedFiles.ItemsSource = _selectedFiles;
            }
        }
        
        public Selection()
        {
            InitializeComponent();
        }

        public void HideMessage()
        {
            ErrorMessage.Visibility = Visibility.Hidden;
            btnClose.Content = "Validate";
            this.Height = 224;
        }

        private void btnClose_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}